using System;
using UnityEngine;
using System.Collections;

public class Screenshot : MonoBehaviour {

	// Use this for initialization
	void Start () {
	


		Time.captureFramerate = 25;
		
	}
	
	public string fileName = string.Empty;
	
	public int id = 1;
	
	// Update is called once per frame
	void Update () {
		
//		switch(id)
//		{
//			case 1:
//			{
//				fileName = "D://Unity//Screenshots//Scn_Ring1//" + System.DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss_ffff") + ".png" ;
//				break;
//			}
//			case 2:
//			{
//				fileName = "D://Unity//Screenshots//Scn_Ring2//" + System.DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss_ffff") + ".png" ;
//				break;
//			}
//			case 3:
//			{
//				fileName = "D://Unity//Screenshots//Scn_Ring3//" + System.DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss_ffff") + ".png" ;
//				break;
//			}
//			case 4:
//			{
//				fileName = "D://Unity//Screenshots//Scn_Ring4//" + System.DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss_ffff") + ".png" ;
//				break;
//			}
//		}
		
		//fileName = "D://Unity//Screenshots//Scn_Ring1//" + System.DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss_ffff") + ".png" ;


		if(Input.GetKeyDown("s"))
		{
		    fileName = string.Format("C://UnityScreenShots//{0:D004}.png", Time.frameCount);
			Application.CaptureScreenshot(fileName);//, 2);
		}
	
	}
}